import request from '../index.js';



// 一级 绘本分类
export const categories=()=>{
	return request.get('/api/user/book/categories',{lang:'zh'});
}

// 二级 绘本分类
export const bookGroups=(id)=>{
	return request.get('/api/user/book/groups',{categoryId:id});
}


// 移除绘本
export const removeFromSet=(setId)=>{
	return request.get('/api/user/book/removeSet',{setId});
}

// 移除绘本组
export const removeGroup=(groupId)=>{
	return request.get("/api/user/book/removeGroup",{groupId});
}

// 绘本组置顶
export const markGroupTop=(groupId)=>{
	return request.get("/api/user/book/markGroupTop",{groupId});
}